
import request from 'utils/request.js'

// 请求标签列表数据
export function getTagList(params) {
	return request(
		{
			url: 'admin/category',
			method: 'GET'
		}
	)
}


export function addArticle(params) {
	return request(
		{
			url: 'admin/article/add',
			method: 'POST',
			data: params
		}
	)
}


export function detailArticle(params) {
	return request(
		{
			url: 'admin/article/detail',
			method: 'GET',
			params: params
		}
	)
}


export function updateArticle(params) {
	return request(
		{
			url: 'admin/article/update',
			method: 'POST',
			data: params
		}
	)
}
